package com.own.core.html.panel.textArea;

import java.lang.reflect.Field;


import org.apache.wicket.model.IModel;

import com.own.core.html.form.textArea.OwnTextArea;
import com.own.core.html.form.textArea.TextArea;
import com.own.core.html.panel.OwnDynPanel;
import com.own.util.model.OwnCompoundPropertyModel;

public class OwnTextAreaPan extends OwnDynPanel {
	TextArea textarea;

	public OwnTextAreaPan(IModel model, Field field, TextArea textarea) {
		super(model, field);
		this.textarea = textarea;
		OwnTextArea ownTextArea = new OwnTextArea("textArea",
				((OwnCompoundPropertyModel) model).bind(field.getName()), textarea);
		setFormComponent(ownTextArea);
		draw();

	}

}
